ABC095 C - Half and Half
問題
https://atcoder.jp/contests/abc095/tasks/arc096_a
コード
https://github.com/rmaruon/atcoder-workspace/blob/master/contests/abc095/C/main.py
解答
AC
https://atcoder.jp/contests/abc095/submissions/14894471
パターンを洗い出して最小を求めている
ABの枚数を決めると、AとBの枚数が決まる ⇒ ABの枚数で
全探索
Submission #28106868 - AtCoder Beginner Contest 095
ループ数が
$ 2 \times 10^5
でそれほど大きくないから、ユーザー解説は最大の数を指定している
私は
max(X, Y) * 2
にした
#ABC-C
#AtCoder問題